//
//  LastTableViewCell.m
//  盘盈贷1.2
//
//  Created by iOS on 15/3/17.
//  Copyright (c) 2015年 iOS. All rights reserved.
//

#import "LastTableViewCell.h"

@implementation LastTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.xuhao = [[UILabel alloc] init];
        [self.contentView addSubview:self.xuhao];
        [self.xuhao release];
        
        self.touzijine = [[UILabel alloc] init];
        [self.contentView addSubview:self.touzijine];
        [self.touzijine release];
        
        self.touziren = [[UILabel alloc] init];
        [self.contentView addSubview:self.touziren];
        [self.touziren release];
        
        self.time = [[UILabel alloc] init];
        [self.contentView addSubview:self.time];
        [self.time release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width = self.contentView.frame.size.width;
    CGFloat height = self.contentView.frame.size.height;
   self.xuhao.frame = CGRectMake(width / 10, height / 2, 50, 30);
    self.xuhao.center = CGPointMake(width / 10, height / 2);
    //self.xuhao.frame = CGRectMake(10, 0, 50, 30);
    self.xuhao.textAlignment = NSTextAlignmentLeft;
    self.xuhao.textColor = [UIColor grayColor];
    self.xuhao.font = [UIFont systemFontOfSize:14];
   // self.xuhao.backgroundColor = [UIColor redColor];
    self.xuhao.text = @"序号";
    
    
    self.touziren.frame = CGRectMake(width / 3.4, height / 2, 50, 30);
    self.touziren.center = CGPointMake(width / 3.4, height / 2);
    self.touziren.textAlignment = NSTextAlignmentLeft;
    self.touziren.textColor = [UIColor grayColor];
    self.touziren.font = [UIFont systemFontOfSize:14];
    // self.xuhao.backgroundColor = [UIColor redColor];
    self.touziren.text = @"投资人";
    
    self.touzijine.frame = CGRectMake(width / 1.7, height / 2, 80, 30);
    self.touzijine.center = CGPointMake(width / 1.7, height / 2);
    self.touzijine.textAlignment = NSTextAlignmentLeft;
    self.touzijine.textColor = [UIColor grayColor];
    self.touzijine.font = [UIFont systemFontOfSize:14];
    // self.xuhao.backgroundColor = [UIColor redColor];
    self.touzijine.text = @"投资金额";
    
    self.time.frame = CGRectMake(width / 1.19, height / 2, 80, 30);
    self.time.center = CGPointMake(width / 1.19, height / 2);
    self.time.textAlignment = NSTextAlignmentLeft;
    self.time.textColor = [UIColor grayColor];
    self.time.font = [UIFont systemFontOfSize:14];
    // self.xuhao.backgroundColor = [UIColor redColor];
    self.time.text = @"申购时间";
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
